<template>
  <iframe id="iframe" :src="src" frameborder="0" scrolling="auto"
    style="width:100%;height:617px;">
  </iframe>
</template>

<script>
import { Douban } from '../api';

export default {
  name: 'DoubanMovie',
  data() {
    return {
      title: '豆瓣影片',
      src: '',
      setting: false
    }
  },
  mounted() {
    let me = this;
    this.$api.ui.pageBackBtn = function(){
      me.$router.push('/douban/movie');
    }
    this.setting = '/douban/movie/setting/' + this.$route.params.id;
    let height = Math.max(document.body.scrollHeight,document.body.clientHeight);
    let iframe = document.getElementById("iframe");
    iframe.style.height = (height - 50) + 'px';
    this.src = 'http://wiki.nexttix.net/douban/frame-' + this.$route.params.id + '.html';
  },
  methods: {
    
  }
}
</script>